package com.supermarket_project.mapper;

import com.supermarket_project.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ljc
 * Date: 2022/07/07 9:20
 * Description:
 * Version: V1.0
 */
@Repository
@Mapper
public interface StaffMapper {
    List<Staff> staffSelect(@Param("start") Integer start, @Param("off") Integer off, Integer staff_id);
    Staff loginStaff( Integer staff_id, String password);
    int addStaff(Staff stafff);
    int delStaff(Integer staff_id);
    int upStaff(Integer staff_id,String six,Integer hierarchy,int status);
    int regStaff(Integer staff_id);
}
